<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>three</title>
    <link rel="StyleSheet" href="../css/jpetstore.css" type="text/css" media="screen"/>
</head>

<body>
<div th:replace="common/IncludeTop">

</div>

<div id="Content">
    <div id="BackLink">
        <a href="main">Return to Main Menu</a>
    </div>

    <div id="Catalog">

        <h2 th:text="${category.name}"></h2>

        <table>
            <tr>
                <th>Product ID</th>
                <th>Name</th>
            </tr>
            <tr th:each="product:${productList}">
                <td><a th:href="@{'viewProduct?productId=' + ${product.getProductId()}}" th:text="${product.productId}"></a></td>
                <td th:text="${product.name}">Product Name</td>
            </tr>
        </table>

    </div>
</div>

<div th:replace="common/IncludeBottom">

</div>
</body>
</html>
